import axios from "@/api/request";
const repairAppeal = {
    add: "/back/repairAppeal/add",
    update: "/back/repairAppeal/update",
    delete: "/back/repairAppeal/delete",
    findById: "/back/repairAppeal/findById",
    findAll: "/back/repairAppeal/findAll",
    search: "/back/repairAppeal/search",
    searchByRepairReportId: "/back/repairAppeal/searchByRepairReportId",
}
const repairEvaluation = {
    add: "/back/repairEvaluation/add",
    update: "/back/repairEvaluation/update",
    delete: "/back/repairEvaluation/delete",
    findById: "/back/repairEvaluation/findById",
    findAll: "/back/repairEvaluation/findAll",
    search: "/back/repairEvaluation/search",
    searchByRepairReportId: "/back/repairEvaluation/searchByRepairReportId",
}
const repairReport = {
    add: "/back/repairReport/add",
    update: "/back/repairReport/update",
    delete: "/back/repairReport/delete",
    findById: "/back/repairReport/findById",
    findAll: "/back/repairReport/findAll",
    search: "/back/repairReport/search",
}
const api = {
    repairAppeal_add(params) {
        return axios.post(repairAppeal.add, params)
    },
    repairAppeal_update(params) {
        return axios.post(repairAppeal.update, params)
    },
    repairAppeal_delete(params) {
        return axios.delete(repairAppeal.delete, {params})
    },
    repairAppeal_findById(params) {
        return axios.get(repairAppeal.findById, {params})
    },
    repairAppeal_findAll(params) {
        return axios.get(repairAppeal.findAll, {params})
    },
    repairAppeal_search(params) {
        return axios.get(repairAppeal.search, {params})
    },
    repairAppeal_searchByRepairReportId(params) {
        return axios.get(repairAppeal.searchByRepairReportId, {params})
    },

    repairEvaluation_add(params) {
        return axios.post(repairEvaluation.add, params)
    },
    repairEvaluation_update(params) {
        return axios.post(repairEvaluation.update, params)
    },
    repairEvaluation_delete(params) {
        return axios.delete(repairEvaluation.delete, {params})
    },
    repairEvaluation_findById(params) {
        return axios.get(repairEvaluation.findById, {params})
    },
    repairEvaluation_findAll(params) {
        return axios.get(repairEvaluation.findAll, {params})
    },
    repairEvaluation_search(params) {
        return axios.get(repairEvaluation.search, {params})
    },
    repairEvaluation_searchByRepairReportId(params) {
        return axios.get(repairEvaluation.searchByRepairReportId, {params})
    },

    repairReport_add(params) {
        return axios.post(repairReport.add, params)
    },
    repairReport_update(params) {
        return axios.post(repairReport.update, params)
    },
    repairReport_delete(params) {
        return axios.delete(repairReport.delete, {params})
    },
    repairReport_findById(params) {
        return axios.get(repairReport.findById, {params})
    },
    repairReport_findAll(params) {
        return axios.get(repairReport.findAll, {params})
    },
    repairReport_search(params) {
        return axios.get(repairReport.search, {params})
    },
}
export default api
